<?php
//配合脚本检查数据库状态是否正常 -- viking 20190212
$obj=new cooperation();
$config=$obj->_config();
$host=$config['db'][0]['host'];
$usr=$config['db'][0]['usr'];
$pwd=$config['db'][0]['pwd'];

$con = mysqli_connect($host,$usr,$pwd);
if(!$con){
   echo 0;
   return;
}

echo 1;